package com.acme.bankapp.domain.bank.exception;

import com.acme.bankapp.domain.bank.account.Account;

/**
 * @author Alexander Kotov (kotov.alex.22@gmail.com)
 */
public class OverDraftLimitExceededException extends NotEnoughFundsException {

    public OverDraftLimitExceededException(Account account) {
        super(account);
    }

    public OverDraftLimitExceededException(String message) {
        super(message);
    }

    public OverDraftLimitExceededException(String message, Throwable cause) {
        super(message, cause);
    }

    public OverDraftLimitExceededException(Throwable cause) {
        super(cause);
    }

    @Override
    public String getMessage() {
        return "Over draft limit exceeded, maximum amount to withdraw: " + getMaximumAmountToWithdraw();
    }

}
